﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Wildweeds.SSO.Entity;

namespace Wildweeds.SSO.Passport
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var userInfo = Session["user"] as UserInfo;
            if (userInfo != null)
                lit_user.Text = string.Format("已登录，用户名：{0}  注册时间：{1}",userInfo.UserName,userInfo.CreateDate);
            else
                Response.Redirect("/Login.aspx?ReturnUrl=" + Request.Url.AbsoluteUri);
        }
    }
}